* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  margin-bottom: 30px;
  text-align: center;
}

h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

h2 {
  color: #3498db;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.deploy-section, .deployments-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="file"], input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

.status-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
}

.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.deployments-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.deployments-list {
  width: 100%;
}

.deployment-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
  transition: transform 0.2s;
}

.deployment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.deployment-info {
  flex: 1;
}

.deployment-version {
  font-weight: bold;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 5px;
}

.deployment-date, .deployment-description {
  color: #7f8c8d;
  margin-bottom: 5px;
}

.deployment-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-view {
  background-color: #2ecc71;
}

.btn-view:hover {
  background-color: #27ae60;
}

.btn-set-current {
  background-color: #f39c12;
}

.btn-set-current:hover {
  background-color: #e67e22;
}

.btn-delete {
  background-color: #e74c3c;
}

.btn-delete:hover {
  background-color: #c0392b;
}

.current-version {
  background-color: #e8f4fd;
  border-left: 4px solid #3498db;
}

.current-version .deployment-version::after {
  content: " (当前版本)";
  color: #3498db;
  font-weight: normal;
  font-size: 14px;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
}

@media (max-width: 768px) {
  .deployment-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .deployment-actions button {
    width: 100%;
  }
}

.current-version-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-bottom: 30px;
  border-left: 4px solid #3498db;
}

.current-version-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.current-version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.current-version-name {
  font-size: 20px;
  font-weight: bold;
  color: #2c3e50;
}

.current-version-date {
  color: #7f8c8d;
  margin-bottom: 5px;
}

.current-version-description {
  color: #7f8c8d;
  margin-bottom: 15px;
}

.no-current-version {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
  color: #6c757d;
  text-align: center;
} 